package com.csit.service;

import com.csit.entity.Buy;
import com.csit.entity.DataDictionary;
import com.csit.util.ResponseMsgUtil;

/**
 * 
 * @Description: 采购service
 * @Copyright: 福州骏华信息有限公司 (c)2012
 * @Created Date : 2012-10-31
 * @author longweier
 * @vesion 1.0
 */
public interface BuyService extends BaseService<Buy, Integer> {
	
	/**
	 * 
	 * @Description: 新增采购单
	 * @param
	 * @Create: 2012-10-31 下午09:31:16
	 * @author longweier
	 * @update logs
	 * @param buy         采购单主信息
	 * @param productids  采购单商品id
	 * @param qtys        数量
	 * @param prices      价格
	 * @param notes       备注
	 * @return
	 * @return
	 * @throws Exception
	 */
	public ResponseMsgUtil addBuy(Buy buy,String productids,String qtys,String prices,String notes);
	
	/**
	 * 
	 * @Description: 更新采购单
	 * @param
	 * @Create: 2012-10-31 下午09:32:11
	 * @author longweier
	 * @update logs
	 * @param buy        采购单主信息
	 * @param ids        采购单详情id
	 * @param productids 商品id
	 * @param qtys       数量
	 * @param prices     价格
	 * @param notes      备注
	 * @param deleteids  删除id
	 * @return
	 * @return
	 * @throws Exception
	 */
	public ResponseMsgUtil updateBuy(Buy buy,String ids,String productids,String qtys,String prices,String notes,String deleteids);
	
	/**
	 * 
	 * @Description: 删除
	 * @param
	 * @Create: 2012-10-31 下午09:55:45
	 * @author longweier
	 * @update logs
	 * @param buy
	 * @return
	 * @return
	 * @throws Exception
	 */
	public ResponseMsgUtil deleteBuy(Buy buy);
	
	/**
	 * 
	 * @Description: 查询采购单明细
	 * @param
	 * @Create: 2012-10-31 下午10:06:59
	 * @author longweier
	 * @update logs
	 * @param buy
	 * @return
	 * @return
	 * @throws Exception
	 */
	public String queryBuyDetail(Buy buy);
	
	/**
	 * 
	 * @Description: 获取采购单主信息
	 * @param
	 * @Create: 2012-10-31 下午10:07:35
	 * @author longweier
	 * @update logs
	 * @param buy
	 * @return
	 * @return
	 * @throws Exception
	 */
	public String getBuy(Buy buy);
	/**
	 * 
	 * @Description: 获取默认编号
	 * @param
	 * @Create: 2012-10-31 下午09:55:12
	 * @author longweier
	 * @update logs
	 * @param shop
	 * @return
	 * @return
	 * @throws Exception
	 */
	public String getCode(DataDictionary shop);
}
